<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/company/list">信托公司</a></li>
    <li class="active">{{id ? "编辑公司" : "新增公司"}}</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate> 
    <div class="form-group" ng-class="{'has-error':form.cShortName.$invalid}">
      <label class="col-sm-2 control-label">公司简称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="公司简称" name="cShortName" ng-model="company.cShortName" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cName.$invalid}">
      <label class="col-sm-2 control-label">公司全称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="公司全称" name="cName" ng-model="company.cName" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cIssuerScore.$invalid}">
      <label class="col-sm-2 control-label">公司得分</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="公司得分" name="cIssuerScore" ng-model="company.cIssuerScore" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cFirstLetter.$invalid}">
      <label class="col-sm-2 control-label">公司首字母</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="公司名第一个字的拼音首字母,大写" name="cFirstLetter" ng-model="company.cFirstLetter" required="required" maxlength="1">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cEnglishName.$invalid }">
      <label class="col-sm-2 control-label">英文名称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="英文名称" name="cEnglishName" ng-model="company.cEnglishName"  maxlength="100">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cEstablishDate.$invalid}">
      <label class="col-sm-2 control-label">成立时间</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="成立时间，如2014年9月" name="cEstablishDate" ng-model="company.cEstablishDate" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cRegisteredCapital.$invalid }">
      <label class="col-sm-2 control-label">注册资本</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="注册资本，请直接填写文字，比如100亿" name="cRegisteredCapital" ng-model="company.cRegisteredCapital" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cHostCity.$invalid}">
      <label class="col-sm-2 control-label">所在城市</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="所在城市,如上海市" name="cHostCity" ng-model="company.cHostCity" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cChairman.$invalid }">
      <label class="col-sm-2 control-label">董事长</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="董事长" name="cChairman" ng-model="company.cChairman" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cGeneralManager.$invalid }">
      <label class="col-sm-2 control-label">总经理</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="总经理" name="cGeneralManager" ng-model="company.cGeneralManager" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cCorporateRepresentative.$invalid }">
      <label class="col-sm-2 control-label">法人代表</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="法人代表" name="cCorporateRepresentative" ng-model="company.cCorporateRepresentative" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cMajorShareholders.$invalid }">
      <label class="col-sm-2 control-label">大股东</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="大股东" name="cMajorShareholders" ng-model="company.cMajorShareholders" >
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cShareholdersInfo.$invalid }">
      <label class="col-sm-2 control-label">股东背景</label>
      <div class="col-sm-5">
        <textarea class="form-control" placeholder="股东背景" name="cShareholdersInfo" ng-model="company.cShareholdersInfo" style="height:100px;" maxlength="100"></textarea>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cAssetScale.$invalid }">
      <label class="col-sm-2 control-label">资产规模</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="资产规模，请直接填写文字，比如100亿" name="cAssetScale" ng-model="company.cAssetScale" >
      </div>
    </div>
    <div class="form-group">
      <label for="advertSortInput" class="col-sm-2 control-label">是否上市</label>
      <div class="col-sm-5">
        <label class="radio-inline">
          <input type="radio" name="status" value="01" ng-model="company.cIsListed">是
        </label>
        <label class="radio-inline">
          <input type="radio" name="status" value="02" ng-model="company.cIsListed">否
        </label>
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.cIntroduction.$invalid }">
      <label class="col-sm-2 control-label">公司简介</label>
      <div class="col-sm-5">
        <textarea class="form-control" placeholder="公司简介" name="cIntroduction" ng-model="company.cIntroduction" style="height:100px;"></textarea>
      </div>
    </div> 
    <div class="form-group" ng-class="{'has-error':form.cShortImageUri.$invalid }">
      <label class="col-sm-2 control-label">公司Logo(100x50)</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="公司Logo" name="cShortImageUri" ng-model="company.cShortImageUri" required="required">
        <div class="btn btn-primary add-pic-btn">上传图片</div>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label"></label>
      <div class="col-sm-5">
        <img ng-src="{{company.cShortImageUri}}" />
      </div>
    </div>  
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>
  </form>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>

